<form id="pagerForm" method="post" action="role/index">
	<input type="hidden" name="search_LIKE_name" value="#(search_LIKE_name??)" />
	<input type="hidden" name="pageNum" value="1" /><!--【必须】value=1可以写死-->
	<input type="hidden" name="numPerPage" value="#(page.pageSize??)" /><!--【可选】每页显示多少条-->
	<input type="hidden" name="orderField" value="#(orderField??)" /><!--【可选】查询排序-->
    <input type="hidden" name="orderDirection" value="asc" /><!--【可选】升序降序-->
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="role/index" method="post" onreset="$(this).find('select.combox').comboxReset()">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					名称：
					<input name="search_LIKE_name" value="#(search_LIKE_name??)" />
				</td>
				<td style="width:200px;">
					<ul>
						<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
						<li><div class="button"><div class="buttonContent"><button type="reset">重置</button></div></div></li>
					</ul>
				</td>
			</tr>
		</table>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="role/add" target="dialog" rel="role_dialog" mask="true" width="850" height="400"><span>添加</span></a></li>
			<li><a class="edit" href="role/edit?id={role_id}" target="dialog" rel="role_dialog" mask="true" width="850" height="400"><span>修改</span></a></li>
			<li><a class="delete" href="role/delete?id={role_id}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="113">
		<thead>
			<tr>
				<th width="120">名称</th>
				<th width="180">描述</th>
				<th width="80">创建者</th>
				<th width="80">使用者</th>
				<th width="80">拥有者</th>
			</tr>
		</thead>
		<tbody>
			#for(item: page.list)
			<tr target="role_id" rel="#(item.id)">
				<td>#(item.name)</td>
				<td>#(item.remark.ellipsis())</td>
				<td>#(item.created().realname)</td>
				<td>#(item.used().name)</td>
				<td>#(item.owned().name)</td>
			</tr>
			#end
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" #(page.pageSize==20?'selected':'')>20</option>
				<option value="50" #(page.pageSize==50?'selected':'')>50</option>
				<option value="100" #(page.pageSize==100?'selected':'')>100</option>
				<option value="150" #(page.pageSize==150?'selected':'')>150</option>
				<option value="200" #(page.pageSize==200?'selected':'')>200</option>
				<option value="250" #(page.pageSize==250?'selected':'')>250</option>
			</select>
			<span>条，共#(page.totalRow)条</span>
		</div>
		<div class="pagination" targetType="navTab" totalCount="#(page.totalRow)" numPerPage="#(page.pageSize)" pageNumShown="10" currentPage="#(page.pageNumber)"></div>
	</div>
</div>